package xyz.wbsite.dbtool;

import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import xyz.wbsite.dbtool.javafx.JavaFxApplication;

import java.io.FileNotFoundException;

@SpringBootApplication
public class Application extends SpringBootServletInitializer {
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(Application.class);
    }

    public static void main(String[] args) throws FileNotFoundException {
        JavaFxApplication.main(args);
        // 这边原本是准备开发web版本准备的，最终没有实现，没来的及去掉Springboot
        // SpringApplication.run(Application.class, args);
    }
}